git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e00b101
)
more lsb fixes
author
Matthias Kramm
<kramm@quiss.org>
Wed, 14 Apr 2010 00:08:03 +0000
(17:08 -0700)
committer
Matthias Kramm
<kramm@quiss.org>
Wed, 14 Apr 2010 00:08:03 +0000
(17:08 -0700)
lib/gfxfont.c
patch
|
blob
|
history
diff --git
a/lib/gfxfont.c
b/lib/gfxfont.c
index
7c71ca7
..
8650880
100644
(file)
--- a/
lib/gfxfont.c
+++ b/
lib/gfxfont.c
@@
-665,6
+665,7
@@
ttf_t* gfxfont_to_ttf(gfxfont_t*font)
}
}
+ dest->bearing = dest->xmin;
/* make sure coordinates are always to the right of the origin */
int xshift=0;
if(dest->xmin < 0) {
@@
-676,8
+677,8
@@
ttf_t* gfxfont_to_ttf(gfxfont_t*font)
dest->xmax += xshift;
}
- dest->bearing = dest->xmin;
- dest->xmin=0;
+ //dest->xmin=0; //TODO: might be necessary for some font engines?
+
dest->advance = src->advance*scale;
int u = font->glyphs[t].unicode;